{% extends 'base.html' %}
{% block title %}
	{{ post['title'] }}
{% endblock %}
{% block content %}
	<h1>
		{{ post['title'] }}
	</h1>
	<h2>
		作者：{{ author_name }}
	</h2>
	{% if session['user_id']==post['author_id'] or 'admin' in session %}
		<a class="simple_links" href={{ url_for('post_delete',post_id=post['post_id']) }}>删除文章</a>
		<a class="simple_links" href={{ url_for('post_update',post_id=post['post_id']) }}>修改文章</a>
	{% endif %}
	<p>
		{{ post['content']|safe }}
	</p>
{% endblock %}